package com.peanut.service.Impl;

import com.peanut.dao.CaseDao;
import com.peanut.dao.CommonDao;
import com.peanut.dao.NavDao;
import com.peanut.service.CaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.Map;

@Service
public class CaseServiceImpl implements CaseService {

    @Autowired
    private CommonDao commonDao;
    @Autowired
    private CaseDao caseDao;
    @Autowired
    private NavDao navDao;

    @Override
    public Map<String, Object> getCaseList() {
        Map<String,Object> map =new HashMap<String, Object>();
        map.put("common",commonDao.getCommonDate());
        map.put("nav",navDao.getNavList());
        map.put("mNav",navDao.getMNavList());
        map.put("case",caseDao.getCaseList());
        return map;
    }

}
